<%@ page import="com.yinhai.core.common.api.config.impl.SysConfig"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="java.util.Date" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<%@ taglib prefix="ta" tagdir="/WEB-INF/tags/tatags"%>

<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%">
<head>
<title>微信配置编辑</title>
</head>
<%@ include file="/ta/inc.jsp"%>
<body >
	<ta:pageloading />
		<ta:panel id="pnl_frm" key="基本信息"  fit="true">
			<ta:form id="form1" >
				<ta:box cols="2" >
					<ta:text id="id" required="true" display="false"/>
					<ta:text id="appid" key="appid" required="true" textHelp="微信公众号标识" labelWidth="120" columnWidth="0.8" readOnly="true"/>
					<ta:box columnWidth="0.2" cssStyle="margin-left:20px" >
						<ta:checkboxgroup  >
							<ta:checkbox  id="defaultwx" value="1" key="默认微信号" />
						</ta:checkboxgroup>
					</ta:box>
				</ta:box>
				<ta:text id="secret" key="secret" labelWidth="120" textHelp="与appid结合验证微信" type="text" required="true" readOnly="true"/>
				<ta:text id="name" key="公众号名称" labelWidth="120"  type="text" required="true"/>
			</ta:form>
			<ta:box >
				<ta:buttonGroup align="right">
					<ta:button id="btn_save" key="保存" isok="true"   isShowIcon="true" onClick="save()"/>
					<ta:button id="btn_close" key="关闭"  isShowIcon="true" onClick="parent.Base.closeWindow('editWx')"/>
				</ta:buttonGroup>
			</ta:box>
		</ta:panel>
</body>
</html>
<script type="text/javascript">
	$(document).ready(function() {
		$("body").taLayout();
	});
	
	/*保存数据*/
	function save(){
		var valid = Base.validateForm("form1");
		if(valid){
			Base.submit("form1","wxRegisterController!updateWx.do",null,null,null,function(data){
				parent.Base.submit("","wxRegisterController!queryWx.do");
				parent.Base.closeWindow("editWx");
			});
		}
	}
</script>
<%@ include file="/ta/incfooter.jsp"%>